//
//  clsExpress.m
//  AntsExpress
//
//  Created by slccper on 16/1/17.
//  Copyright © 2016年 slccper. All rights reserved.
//

#import "clsExpress.h"
#import "clsOtherFun.h"
@implementation clsExpress
- (id)initWithDic:(NSDictionary *)dic
{
    self = [super init];
    if (self) {
//        [self setValuesForKeysWithDictionary:dic];
        for (int i=0; i<dic.allKeys.count;i++) {
            [clsOtherFun ObjectSetValue:self :dic.allKeys[i] :dic.allValues[i]];
        }
    }
    return self;
}
+(NSMutableArray *)GetDataByArr:(NSArray *)list
{
    NSMutableArray *data = [NSMutableArray array];
    if (list.count>0) {
        for (int i=0 ;i< list.count;i++) {
            if (i==1) {
                NSDictionary *dic = list[i];
                clsExpress *Express = [[clsExpress alloc]initWithDic:dic];
                [data addObject:Express];
            }
            
        }
    }
    return data;
}

@end
